package com.tuanzi.loan.business.service.commuser;

import com.tuanzi.loan.business.entity.commuser.CommuserInfo;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.commuser.CommuserInfosearchRequest;
import com.tuanzi.loan.vo.response.commuser.CommuserInfoSearchResponse;
import org.springframework.data.domain.Page;

import java.util.List;

public interface CommuserInfoService  {

    //通过电话查找对象
    Page<CommuserInfoSearchResponse> list(PageSearcher<CommuserInfosearchRequest> request);

//  jooq通过电话获取数据
    List<CommuserInfo> findCommuserBymobnum(CommuserInfosearchRequest request);

    CommuserInfo saveOrUpdate(CommuserInfo commuserInfo);

    CommuserInfo findOne(Long id);

//    void updateIsavaliable(int isavaliable,Long id);
}
